#include "unp.h"
/*
#define CUSER "User"
#define CWHO "who"
#define CTALK "talk"
#define CQUIT "quit"
#define CHELP "help"
#define CDEBUG "debug"
#define CSEND "send"
#define C298 "298"
#define CRLF "\r\n"
#define CRLF2 "\r\n\r\n"
#define ON 1
#define OFF 0
#define LOGIN_FLAG_ON 1
#define LOGIN_FLAG_OFF 0
#define TRANSFER_MODE 2
#define COMMAND_MODE 1
#define CHAT_MODE 0
#define DEBUG_MODE_ON 1
#define DEBUG_MODE_OFF 0

#define MSG_IS_RES 1
#define MSG_IS_REQ 0

char MY_ID[WORD_LENG];
char TO_ID[WORD_LENG];
char RECVFILENAME[WORD_LENG];
char TRFILENAME[WORD_LENG];
char RECVIPADDR[WORD_LENG];
char FT_TO_ID[WORD_LENG];
int LOGIN_FLAG;
int MODE_FLAG;
int DEBUG_FLAG;
int RESPONSE_FLAG;

*/
#define ON 1
#define OFF 0
#define USER_COMMAND 0
#define S_REPLY 1
#define S_REPLY1 2
#define S_REPLY2 3
#define I_REPLY 4//ID
#define P_REPLY 5
#define DATA_TRANSFER 6


#define OPEN 0
#define PASSWORD 1
#define LS 2
#define PWD 13
#define LCD 14
#define CD 3
#define TYPE 4
#define TYPE_CHANGE 5
#define GET 6
#define PUT 7
#define CLOSE 8
#define QUIT 9
#define PASSIVE 10
#define DEBUG 11
#define ELSE 12
#define SYSTEM 15



#define MY_PORTNUM 9878
#define INIT_PASSIVE_PORT 10000
#define FTP_PORT_NUM 21
#define WORD_NUM 15
#define WORD_LENG 30
#define MSG_LENG 200

char SERVIPADDR[WORD_LENG];
char PATHNAME[WORD_LENG];
char DATA_PORT_NUM[WORD_LENG];
int PASSIVE_PORT_NUM;
int I_DATA_PORT_NUM;
int COMMAND_TYPE;
int DATA_CONN_MODE;
int BINARY_MODE;
int ACTIVE_MODE;
int DEBUG_MODE;
int CURRENT_STATE;
int stdineof;
///int CURRENT_RESPONSE;
int SOCKFD;

